package com.dubbo.service.impl;import com.dubbo.domain.Order;import com.dubbo.service.OrderService;import java.util.UUID;/** * Created by Administrator on 2020-3-3. */public class OrderServiceImpl implements OrderService {    @Override    public Order createOrder(Integer userId, String goodName, float price, int amount) {        //把订单记录到数据库        Order order = new Order();        order.setId(UUID.randomUUID().toString().replaceAll("-",""));        order.setGoodName(goodName);        order.setAmount(amount);        order.setPrice(price);        return order;    }}